package cc.wanforme.st.server.vo.base;

import java.time.LocalDateTime;

import cc.wanforme.st.server.base.entity.Permission;
import cc.wanforme.st.server.util.MunkBeanUtils;

/**
 * @author wanne
 * 2022年3月10日
 */
public class PermissionVo {

    private Long id;

    private String code;

    private String description;
    
    private LocalDateTime createTime;
    
    private Long pid;
    
    private String pcode;

    public PermissionVo() {}
    
    public PermissionVo(Permission po) {
    	MunkBeanUtils.copyProperties(po, this);
    }
    public Permission toPo() {
    	Permission po =  new Permission();
    	MunkBeanUtils.copyProperties(this, po);
    	return po;
    }

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public LocalDateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}
	public Long getPid() {
		return pid;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	public String getPcode() {
		return pcode;
	}
	public void setPcode(String pcode) {
		this.pcode = pcode;
	}
    
}
